//
//  CaipiaoManager.h
//  EasyToo
//
//  Created by linshengqin on 13-8-25.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"

@protocol CaiPiaoManagerDelegate <NSObject>
@optional

- (void)onSearchQiCiFinish:(BOOL)isSuccess
                        QiCi:(NSMutableArray*)qiciInfoArray;

- (void)onOrderCaipiaoFinish:(BOOL)isSuccess
                          Tn:(NSString*)tn;

@end

@interface CaipiaoManager : NSObject <ServerCommunicationDelegate>

+ (CaipiaoManager*)shareManager;
@property (nonatomic, assign) id<CaiPiaoManagerDelegate> delegate;

- (void)CaiPiaoQiCi:(NSString*)type Qici:(NSString*)qici;
- (void)CaiPiaoCharge:(NSString*)money CardID:(NSString*)cardId;
-(void) caipiaoOrder:(NSMutableArray*)stake
               BType:(NSString *)bType
            BetCount:(NSString *)betCount
            BetMoney:(NSString *)betMoney
                  BS:(NSString *)bs
            isAppend:(NSString *)isAppend
               Issue:(NSString *)issue
               LType:(NSString *)ltype
               PType:(NSString*)ptype
            allMoney:(NSString*)totalPrice
              CardID:(NSString*)cardID;
@end
